package nonmerci.pioche;


import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import nonmerci.elements.Carte;

import org.junit.Before;
import org.junit.Test;
import org.junit.Assert;

public class TestTas {

	Tas tas;
	
	@Before
	public void setUp()
	{
		tas = new TasImpl();
	}
	
	@Test 
    public void testTasEnleverCarte() throws TasDeCarteVideException {
		Carte carteDeTest = mock(Carte.class) ;
		tas.ajouter(carteDeTest);
		Carte carte = tas.enlever();
		 Assert.assertEquals(carteDeTest, carte) ;
		
	   }
	
	
	@Test 
    public void testTasInitialiser() throws TasDeCarteVideException{
		Carte carteDeTest = mock(Carte.class) ;
		for(int i=3;i<=35;i++){
			tas.ajouter(carteDeTest);
		}
		tas.initialiser();
    }

}
